home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / RCS / X,v < prev    next >
Encoding:
Text File  |  1990-04-26  |  1.3 KB  |  61 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    mendel:1.1; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.1
  10. date     90.04.26.10.45.39;  author mendel;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#!/bin/csh -f 
  26. #
  27. # Script for selecting the correct X server for the current machine.
  28. # $Header: /sprite/src/cmds/addhost/RCS/addhost,v 1.11 90/04/03 11:48:47 jhh Exp $ SPRITE (Berkeley)
  29. #
  30. # Copyright 1989 Regents of the University of California
  31. # Permission to use, copy, modify, and distribute this
  32. # software and its documentation for any purpose and without
  33. # fee is hereby granted, provided that the above copyright
  34. # notice appear in all copies.  The University of California
  35. # makes no representations about the suitability of this
  36. # software for any purpose.  It is provided "as is" without
  37. # express or implied warranty.
  38. #
  39. set hostName = `hostname`
  40. set fbtypesFile = "/X11/R4/lib/fbtypes"
  41. set where    = '$2'
  42.  
  43. set type = `awk "/^$hostName/ { print $where;}" $fbtypesFile`
  44.  
  45. switch ($type)
  46.     case "FBTYPE_DS3100_BW"
  47.         exec /X11/R4/cmds/Xmfbpmax $*
  48.                 breaksw
  49.     case "FBTYPE_DS3100_COL"
  50.         exec /X11/R4/cmds/Xcfbpmax $*
  51.                 breaksw
  52.     case ""
  53.         exec /X11/R4/cmds/Xmfbpmax $*
  54.                 breaksw
  55.     default:
  56.         echo "Unknown fbType " $type " for host " $hostName
  57.                 breaksw
  58. endsw
  59. exit 1
  60. @
  61.